/*声明字体图标*/
@font-face {
    font-family: 'icomoon';
    src:  url('../fonts/icomoon.eot?tomleg');
    src:  url('../fonts/icomoon.eot?tomleg#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?tomleg') format('truetype'),
    url('../fonts/icomoon.woff?tomleg') format('woff'),
    url('../fonts/icomoon.svg?tomleg#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
/*版心*/
.w {
   width: 1200px;
    margin: 0 auto;
}

.shortcat {
    height: 31px;
    background-color: #f1f1f1;
    line-height: 31px;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.shortcat ul li {
    float: left;
}

.style_red {
    color: #c81623;
}

.shortcat .fr ul li:nth-child(even) {
    width: 1px;
    height: 12px;
    background-color: #666666;
    margin: 9px 15px 0;
}

.arrow-icon::after {
    content: '\e91e';
    font-family: 'icomoon';
    margin-left: 6px;
}

/*头部制作*/
header {
    position: relative;
    height: 105px;
    /*background-color: skyblue;*/
}

.logo {
    position: relative;
    top: 25px;
    width: 171px;
    height: 61px;
   /* background-color: pink;*/
}

.logo h1 a {
    display: block;
    width: 171px;
    height: 61px;
    background: url("../images/logo.png") no-repeat;
    /*font-size: 0;方法1*/
    text-indent: -999px;/*方法2*/
    overflow: hidden;
}

.search {
    position: absolute;
    left: 346px;
    top: 25px;
    width: 538px;
    height: 36px;
    border: 2px solid red;
}

.search input {
    float: left;
    width: 455px;
    height: 32px;
    padding-left: 10px;
}

.search button {
    float: left;
    width: 79px;
    height: 33px;
    background-color: red;
    font-size: 16px;
    color: #fff;
}

.hotwords {
    position: absolute;
    /*top: 55px;*/
    top: 66px;
    left: 346px;
    width: 538px;
}

.hotwords a {
    margin: 0 10px;
    font-size: 11px;
}

.shopcar {
    position: absolute;
    right: 6px;
    top: 25px;
    width: 140px;
    height: 35px;
    border: 1px solid #dfdfdf;
    background-color: #f7f7f7;
    line-height: 35px;
}

.shopcar::before {
    margin-right: 5px;
    font-family: 'icomoon';
    content: '\e93a';
    color: #c81623;
}
.shopcar::after {
    margin-left: 10px;
    font-family: 'icomoon';
    content: '\e920';
}

.count {
    position: absolute;
    top: -5px;
    /*写left而不是right ，是因为当数值多的时候，让其向右边移*/
    left: 105px;
    height: 14px;
    line-height: 14px;
    color: #fff;
    background-color: #e60012;
    padding: 0 5px;
    border-radius: 7px 7px 7px 0;
}

/*nav模块制作*/
.nav {
    height: 47px;
    border-bottom: 2px solid #b1191a;
}

.nav .dropdown {
    float: left;
    width: 210px;
    height: 45px;
    background-color: #b1191a;
}

.nav .navitems {
    float: left;
}

.navitems {
    float: left;
}

.dropdown .dt{
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    line-height: 45px;
    font-size: 16px;
}
.dropdown .dd {
   /* display: none;*/
    margin-top: 2px;
    width: 210px;
    height: 465px;
    background-color: #b1191a;
}
.dropdown .dd li {
    position: relative;
    height: 31px;
    margin-left: 2px;
    padding-left: 10px;
    line-height: 31px;

}
.dropdown .dd li:hover {
    background-color: #fff;
    color: #c81623;
}

.dropdown .dd li a {
    font-size: 14px;
    color: #fff;
}

.dropdown .dd li:hover a {
    color: #c81623;
}

.dropdown .dd ul li::after {
    position: absolute;
    top: 1px;
    right: 10px;
    font-size: 14px;
    font-family: 'icomoon';
    content: '\e920';
}

.navitems ul li {
    float: left;
}
.navitems ul li a {
    /*给a指定padding值，而不是给li指定padding值，
    是因为如果给li指定padding值的话，那么我们得将鼠标移动到li上面才可以触发a的跳转事件，
    但是给a指定padding值的话，相当于扩大了li的作用范围*/
    padding: 0 25px;
    display: block;
    height: 45px;
    line-height: 45px;
    font-size: 16px;
}

.footer {
    height: 415px;
    padding-top: 30px;
    background-color: #f5f5f5;
}

.footer .mod_service {
    height: 80px;
    border-bottom: 1px solid #ccc;
}

.footer .mod_service li {
    float: left;
    padding-left: 35px;
    width: 300px;
    height: 50px;
}
.footer .mod_service h5 {
    /*h5浮动之后，下一个div不用浮动因为文字会自动环绕在浮动元素的右侧*/
    float: left;
    width: 50px;
    height: 50px;
   background: url("../images/icons.png") no-repeat -252px -2px;
}
.footer .mod_service .service_txt {
    margin-left: 15px;
}
.footer .mod_service .service_txt h4 {
    margin-top: 5px;
    font-size: 14px;
}

.footer .mod_service .service_txt p {
    margin-top: 5px;
    font-size: 12px;
}

.mod_help {
    height: 185px;
    border-bottom: 1px solid #cccccc;
    padding-left: 50px;
    padding-top: 20px;

}
.mod_help dl {
    float: left;
    width: 200px;
}
.mod_help dl:last-child {
    width: 100px;
    text-align: center;
}
.mod_help dl dt {
    font-size: 16px;
    margin-bottom: 10px;
}
.mod_copyright {
    text-align: center;
    padding-top: 20px;
}
.links {
    margin-bottom: 15px;
}

.links a {
    margin: 0 3px;
}






